package org.liubility.server.usersys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.liubility.pojo.exception.LBException;
import org.liubility.server.usersys.entity.User;

/**
 * @Author: Jdragon
 * @email: 1061917196@qq.com
 * @Date: 2020.09.04 15:49
 * @Description:
 */
public interface UserService extends IService<User> {

    /**
     * 个性化验证登录
     * @param name 账号
     * @param rawPassword 原始密码
     * @return
     */
    boolean checkLogin(String name, String rawPassword) throws Exception;

    User register(User user) throws LBException;

    User getUserByName(String name);


}
